//第七题
import java.util.Scanner;
public class M80507 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入语文成绩：");
        double yuwen=in.nextDouble();
        System.out.println("请输入数学成绩：");
        double shuxue=in.nextDouble();
        System.out.println("请输入英语成绩：");
        double yingyu=in.nextDouble();
        double zong=yingyu+shuxue+yingyu;
        double ping=zong/3;
        System.out.println("平均分为"+ping+",总分为"+zong);
    }
}
